package 成绩分析497;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        
        int maxScore = Integer.MIN_VALUE;
        int minScore = Integer.MAX_VALUE;
        int sum = 0;
        
        for (int i = 0; i < n; i++) {
            int score = scanner.nextInt();
            maxScore = Math.max(maxScore, score);
            minScore = Math.min(minScore, score);
            sum += score;
        }
        
        double average = (double) sum / n;
        average = Math.round(average * 100) / 100.0;
        
        System.out.println(maxScore);
        System.out.println(minScore);
        System.out.printf("%.2f", average);
    }
}

